<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>登录若依系统</title>
    <meta name="description" content="若依后台管理框架">
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
    <link href="../static/css/login.min.css" th:href="@{/css/login.min.css}" rel="stylesheet"/>
    <link href="../static/ruoyi/css/ry-ui.css" th:href="@{/ruoyi/css/ry-ui.css?v=4.8.0}" rel="stylesheet"/>
    <!-- 360浏览器急速模式 -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}"/>
    <style type="text/css">
        label.error { position:inherit; }

        /* 基础样式 */
        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            overflow: hidden;
            background: url('https://source.unsplash.com/random/1920x1080/?tech,abstract') no-repeat center center;
            background-size: cover;
        }

        /* 主登录面板 - 磨砂效果 */
        .signinpanel {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            padding: 50px;
            width: 80%;
            max-width: 1000px;
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transform-style: preserve-3d;
            transition: all 0.5s ease;
            color: #fff;
        }

        /* 面板内部装饰效果 */
        .signinpanel::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            animation: rotate 30s linear infinite;
            z-index: 0;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .signin-info, form {
            position: relative;
            z-index: 2;
        }

        /* Logo样式 */
        .logopanel {
            text-align: center;
            margin-bottom: 40px;
        }

        .logopanel h1 img {
            height: 80px;
            transition: all 0.5s ease;
            filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
        }

        /* 标题样式 - 大字体 */
        h4 {
            color: #fff;
            font-weight: 600;
            margin-bottom: 30px;
            font-size: 2rem;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        h4 strong {
            color: #fff;
            position: relative;
        }

        h4 strong::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 3px;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s ease;
        }

        h4:hover strong::after {
            transform: scaleX(1);
        }

        /* 特性列表 - 大字体 */
        ul.m-b {
            list-style: none;
            padding: 0;
            margin: 0 0 40px 0;
        }

        ul.m-b li {
            padding: 18px 0;
            color: rgba(255, 255, 255, 0.9);
            transition: all 0.3s ease;
            position: relative;
            padding-left: 45px;
            font-size: 1.3rem;
        }

        ul.m-b li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            background-color: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            opacity: 0;
            transition: all 0.3s ease;
        }

        ul.m-b li:hover {
            color: #fff;
            transform: translateX(10px);
        }

        ul.m-b li:hover::before {
            opacity: 0.5;
            left: -5px;
        }

        .fa-arrow-circle-o-right {
            color: rgba(255, 255, 255, 0.9);
            margin-right: 15px;
            font-size: 1.3rem;
            transition: all 0.3s ease;
        }

        ul.m-b li:hover .fa-arrow-circle-o-right {
            transform: rotate(90deg);
            color: #fff;
        }

        /* 表单样式 - 大字体 */
        .form-control {
            border-radius: 35px;
            padding: 20px 25px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
            font-size: 1.2rem;
            background-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .form-control::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .form-control:focus {
            border-color: rgba(255, 255, 255, 0.6);
            background-color: rgba(255, 255, 255, 0.25);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
        }

        /* 按钮样式 - 大字体 */
        .btn-success {
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 35px;
            padding: 20px;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 25px;
            font-size: 1.2rem;
            color: #fff;
            letter-spacing: 1px;
        }

        .btn-success:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
        }

        /* 页脚样式 */
        .signup-footer {
            margin-top: 40px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 1rem;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 25px;
        }

        /* 验证码样式 */
        .imgcode {
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .imgcode:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .signinpanel {
                width: 90%;
                padding: 30px;
            }

            .logopanel h1 img {
                height: 60px;
            }

            h4 {
                font-size: 1.6rem;
            }

            ul.m-b li {
                font-size: 1.1rem;
                padding-left: 35px;
            }

            .form-control {
                padding: 16px 20px;
                font-size: 1rem;
            }

            .btn-success {
                padding: 16px;
                font-size: 1rem;
            }
        }
    </style>
    <script>
        if(window.top!==window.self){alert('未登录或登录超时。请重新登录');window.top.location=window.location};
    </script>
</head>
<body class="signin">
<!-- 主登录面板 -->
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-7">
            <div class="signin-info">
                <div class="logopanel m-b">
                    <h1><img alt="[ 若依 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
                </div>
                <div class="m-b"></div>
                <h4>欢迎使用 <strong>若依 后台管理系统</strong></h4>
                <ul class="m-b">
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> SpringBoot - 快速开发框架</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Mybatis - 强大的ORM框架</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Shiro - 安全认证框架</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Thymeleaf - 现代化模板引擎</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Bootstrap - 响应式前端框架</li>
                </ul>
                <strong th:if="${isAllowRegister}">还没有账号？ <a th:href="@{/register}" style="color: rgba(255, 255, 255, 0.9);">立即注册&raquo;</a></strong>
            </div>
        </div>
        <div class="col-sm-5">
            <form id="signupForm" autocomplete="off">
                <h4 class="no-margins">登录系统</h4>
                <p class="m-t-md" style="color: rgba(255, 255, 255, 0.8); margin-bottom: 30px;">安全登录，保护您的数据</p>
                <input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" />
                <input type="password" name="password" class="form-control pword" placeholder="密码" value="admin123" />
                <div class="row m-t" th:if="${captchaEnabled==true}">
                    <div class="col-xs-6">
                        <input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" />
                    </div>
                    <div class="col-xs-6">
                        <a href="javascript:void(0);" title="点击更换验证码">
                            <img th:src="@{/captcha/captchaImage(type=${captchaType})}" class="imgcode" width="85%"/>
                        </a>
                    </div>
                </div>
                <div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">
                    <input type="checkbox" id="rememberme" name="rememberme">
                    <label for="rememberme" style="color: rgba(255, 255, 255, 0.8);">记住我</label>
                </div>
                <button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录，请稍候...">
                    <i class="fa fa-sign-in"></i> 登 录
                </button>
            </form>
        </div>
    </div>
    <div class="signup-footer">
        <div class="pull-left">
            Copyright © 2018-2025 ruoyi.vip All Rights Reserved. <br>
            <span style="font-size: 0.9rem;">当前版本: v4.8.0</span>
        </div>
    </div>
</div>

<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; var captchaEnabled = [[${captchaEnabled}]];</script>
<!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]-->
<!-- 全局js -->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script src="../static/ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
<script src="../static/ruoyi/js/ry-ui.js" th:src="@{/ruoyi/js/ry-ui.js?v=4.8.0}"></script>
<script src="../static/ruoyi/login.js" th:src="@{/ruoyi/login.js}"></script>
<script>
    // 验证码图片点击刷新
    $(document).ready(function() {
        $('.imgcode').on('click', function() {
            const src = $(this).attr('src');
            $(this).attr('src', src.split('?')[0] + '?' + Math.random());
        });
    });
</script>
</body>
</html>